import glob
from os.path import isfile

dir = "/Users/caixiaomu/FollowUpSystem_WX"

for filename in glob.iglob(dir + '/**/**', recursive=True):
    if isfile(filename):
        print(filename)
        with open(filename, "r") as f:
            content = f.readlines()
            with open("/Users/caixiaomu/Desktop/main.txt", "a") as w:
                w.writelines(content)
